-- GENERATED SPELL FOR [Syndicate Footpad] --


function spell0_2240(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2240', 637, 1)
end

function Sorts_2240(pUnit, Event)
local choix_sorts_2240 = math.random(0, 0)
if choix_sorts_2240 == 0 then
pUnit:RegisterEvent('spell0_2240', 1, 1)
end
end

function mob2240_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2240', math.random(1500, 3000), 1)
end

function mob2240_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2240_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2240_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2240, 1, 'mob2240_Action')
RegisterUnitEvent(2240, 2, 'mob2240_Leave')
RegisterUnitEvent(2240, 3, 'mob2240_Kill')
RegisterUnitEvent(2240, 4, 'mob2240_Die')
